package com.chaoma.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.chaoma.system.mapper.CmFactoryMapper;
import com.chaoma.system.domain.CmFactory;
import com.chaoma.system.service.ICmFactoryService;

/**
 * 抄码信息Service业务层处理
 * 
 * @author chaoma
 * @date 2023-10-07
 */
@Service
public class CmFactoryServiceImpl implements ICmFactoryService 
{
    @Autowired
    private CmFactoryMapper cmFactoryMapper;

    /**
     * 查询抄码信息
     * 
     * @param id 抄码信息主键
     * @return 抄码信息
     */
    @Override
    public CmFactory selectCmFactoryById(Long id)
    {
        return cmFactoryMapper.selectCmFactoryById(id);
    }

    /**
     * 查询抄码信息列表
     * 
     * @param cmFactory 抄码信息
     * @return 抄码信息
     */
    @Override
    public List<CmFactory> selectCmFactoryList(CmFactory cmFactory)
    {
        return cmFactoryMapper.selectCmFactoryList(cmFactory);
    }

    /**
     * 新增抄码信息
     * 
     * @param cmFactory 抄码信息
     * @return 结果
     */
    @Override
    public int insertCmFactory(CmFactory cmFactory)
    {
        return cmFactoryMapper.insertCmFactory(cmFactory);
    }

    /**
     * 修改抄码信息
     * 
     * @param cmFactory 抄码信息
     * @return 结果
     */
    @Override
    public int updateCmFactory(CmFactory cmFactory)
    {
        return cmFactoryMapper.updateCmFactory(cmFactory);
    }

    /**
     * 批量删除抄码信息
     * 
     * @param ids 需要删除的抄码信息主键
     * @return 结果
     */
    @Override
    public int deleteCmFactoryByIds(Long[] ids)
    {
        return cmFactoryMapper.deleteCmFactoryByIds(ids);
    }

    /**
     * 删除抄码信息信息
     * 
     * @param id 抄码信息主键
     * @return 结果
     */
    @Override
    public int deleteCmFactoryById(Long id)
    {
        return cmFactoryMapper.deleteCmFactoryById(id);
    }
}
